package com.atguigu.gmall.list.dao;

import com.atguigu.gmall.list.bean.Person;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PersonDao extends CrudRepository<Person,Long> {

    List<Person> findAllByAddressLike(String address);

    List<Person> findAllByIdGreaterThan(Long id);
}
